home *** CD-ROM | disk | FTP | other *** search
- /* voice.mrbk */
- /* This simple ARexx program runs tests MRBackup's voice capability. */
-
- signal on ERROR
- signal on BREAK_C
-
- options results
-
- if ~(Show('P', 'MRBackup_#1')) then do
- say "You must run MRBackup first. With a little work, you could"
- say "get this ARexx script to do it for you."
- exit 1
- end
-
- address "MRBackup_#1"
-
- poptofront
-
- 'notealert "This test turns the voice option off and on."'
- 'setvoice "no"'
- if result ~= "OK" then do
- say "I could not turn the voice option off!"
- exit 1
- end
-
- 'speak "You should not hear this message."'
- if result ~= "OK" then do
- say "Attempt to speak failed."
- exit 1
- end
-
- call Delay(50)
-
- 'setvoice "yes"'
- if result ~= "OK" then do
- say "I could not turn the voice option on!"
- exit 1
- end
-
- 'speak "This message is being brought to you by Ay Rexx."'
- if result ~= "OK" then do
- say "Attempt to speak failed."
- exit 1
- end
-
- exit 0
-
- /*------------------------------------------------------------------*/
-
- break_c:
-
- say "*** Control-C recieved. Stopped by user. ***"
- exit 5
-
- /*------------------------------------------------------------------*/
-
- error:
-
- say "Error"
- exit 6
-
- /*------------------------------------------------------------------*/
-
-